import math
import random
from _decimal import Decimal

print(2 ** 10)

print(abs(-100))  # 绝对值

print(round(3.1415926, 1))  #保留一位小数
print(round(3.1415926, 2))
print(round(3.1415926, 3))

'''
1024
100
3.1
3.14
3.142
'''

int69 = 69
print(bin(int69))  # 0b1000101
print(int69.bit_length())  # 7
# 随机整数
print(random.randint(1, 10))

print("%.2f" % 10.123)


price = -10

print("-10/abs(10)=", price / abs(price))

print(abs(-10))